﻿@*
    * ---------------------------------------------------
    * 作者: MTQ
    * 日期： 2021/5/14 16:03:56
    * ---------------------------------------------------
*@

@{
    Layout = "~/Views/Shared/_Layout_lay_admin.cshtml";
}

<style>
    body {
        background-color: #ffffff;
    }
</style>

<div class="layui-form layuimini-form">
    <div class="layui-form-item  layui-hide ">
        <label class="layui-form-label" formeld_key="Log_Id" txt='Log_Id'></label>
        <div class="layui-input-block">
            <input type="text" name="Log_Id" placeholder="" value="@Model.Log_Id" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item ">
        <label class="layui-form-label" formeld_key="Log_UserId" txt='Log_UserId'></label>
        <div class="layui-input-block">
            <input type="text" name="Log_UserId" placeholder="" value="@Model.Log_UserId" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item ">
        <label class="layui-form-label" formeld_key="Log_UserName" txt='Log_UserName'></label>
        <div class="layui-input-block">
            <input type="text" name="Log_UserName" placeholder="" value="@Model.Log_UserName" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item ">
        <label class="layui-form-label" formeld_key="Log_Path" txt='Log_Path'></label>
        <div class="layui-input-block">
            <input type="text" name="Log_Path" placeholder="" value="@Model.Log_Path" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item ">
        <label class="layui-form-label" formeld_key="Log_HttpMethod" txt='Log_HttpMethod'></label>
        <div class="layui-input-block">
            <input type="text" name="Log_HttpMethod" placeholder="" value="@Model.Log_HttpMethod" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item ">
        <label class="layui-form-label" formeld_key="Log_QueryString" txt='Log_QueryString'></label>
        <div class="layui-input-block">
            <input type="text" name="Log_QueryString" placeholder="" value="@Model.Log_QueryString" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item ">
        <label class="layui-form-label" formeld_key="Log_Remark" txt='Log_Remark'></label>
        <div class="layui-input-block">
            <input type="text" name="Log_Remark" placeholder="" value="@Model.Log_Remark" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item ">
        <label class="layui-form-label" formeld_key="Log_CreateTime" txt='Log_CreateTime'></label>
        <div class="layui-input-block">
            <input type="text" name="Log_CreateTime" placeholder="" value="@Model.Log_CreateTime" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>

<script>
    layui.use(['form'], function () {
        var form = layui.form,
            layer = layui.layer,
            $ = layui.$;

        //监听提交
        form.on('submit(saveBtn)', function (data) {

            $.ajax({
                url: '/Log_Web/Create',
                type: 'post',
                dataType: 'text',
                data: data.field,
                success: function (resp) {
                    var json = eval('(' + resp + ')');
                    var index = layer.alert(json.Message, function () {
                        // 关闭弹出层
                        layer.close(index);
                        parent.reloadTable();
                        var iframeIndex = parent.layer.getFrameIndex(window.name);
                        parent.layer.close(iframeIndex);
                    });
                },
                error: function (resp) {
                    layer.alert("对不起出错了");
                }
            });


            return false;
        });
        showFormelDtxt(log_web_entity);
    });
</script>



















